// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request';

// export function addCase(data) {
//   return request({
//     url: '/admin/case/add',
//     method: 'post',
//     data,
//   });
// }



/**
 * 查看
 * @param
 */
 export function employeeDelRole(uid) {
  const data = {
    uid: uid,
  };
  return request({
    url: 'admin/merchant/employee/delete',
    method: 'get',
    params: data,
  });
}

/**
 * 添加病例
 * @param
 */
 export function addCase(params) {

  return request({
    url: '/admin/merchant/employee/addCase',
    method: 'post',
    data: params,
  });
}

/**
 * 编辑病例
 * @param
 */
 export function updateCase(params) {

  return request({
    url: '/admin/merchant/employee/updateCase',
    method: 'post',
    data: params,
  });
}

/**
 * 删除病例
 * @param
 */

 export function userCaseDeleteApi(id) {
  return request({
    url: `/admin/merchant/employee/deleteCase/${id}`,
    method: 'get',
  });
}

/**
 * @description 用户病例记录列表
 */
 export function userCaseListApi(params) {
  return request({
    url: `/admin/merchant/employee/caseList`,
    method: 'get',
    params,
  });
}

/**
 * @description 用户病例记录详情
 */
 export function userCaseDetailApi(id) {
  return request({
    url: `/admin/merchant/employee/detialCase/${id}`,
    method: 'get',
  });
}

